package com.tedu.show.menus;

import com.tedu.controller.GameController;

import javax.swing.*;
import java.awt.*;

public class EndScreen extends BaseScreen {
    public EndScreen() {
        super("game_over");

        JButton restartButton = new JButton("再来一局");
        restartButton.setBounds(300, 400, 200, 50);
        restartButton.addActionListener(e -> GameController.switchPanel(GameController.GameState.SELECTION));
        this.add(restartButton);
    }
}
